@import './_theme.less';

/**
 * antd 样式覆盖
 * @position ./src/assets/css/antd.reset.less
 */
// 表单样式覆盖
.ant-form {
  // ant-form-item input 离 form 容器有 5px
  margin-top: -5px;
}

.ant-form-horizontal {
  .ant-form-item {
    margin-bottom: 10px;
  }

  > .ant-form-item {
    &:last-child {
      margin-bottom: 0px;
    }
  }

  .ant-form-explain-holder {
    // antd 新版加上的，影响了布局
    display: none;
  }
}

// begin----table
.ant-table-default {
  .ant-table-thead > tr > th {
    border: 0;
    padding: 12px 8px;
  }

  .ant-table-tbody > tr > td {
    border: 0;
    padding: 8px 8px;
    height: 45px;
  }

  tr > th:first-child,
  tr > td:first-child {
    padding-left: 14px;
  }

  .ant-table-tbody > tr.ant-table-row-selected td {
    background: none;
  }

  .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td {
    background: none;
  }

  .ant-table-tbody
    > tr:hover:not(.ant-table-expanded-row):nth-child(even)
    > td {
    background: #f7f7f7;
  }

  tr:not(.ant-table-expanded-row):nth-child(even) {
    > td {
      background: #f7f7f7;
    }
  }
}

.ant-table-fixed-header .ant-table-scroll .ant-table-header {
  overflow: auto !important;
  margin-bottom: 0 !important;
  height: 45px;
}

.ant-table-fixed-header
  > .ant-table-content
  > .ant-table-scroll
  > .ant-table-body {
  overflow: auto !important;
}

// end----table

.ant-popover-arrow {
  background: #fff;
}

// begin----ant-tooltip
.ant-tooltip {
  max-width: none;
}

// end----ant-tooltip
